package srx.open.com.mode;

import srx.open.com.activity.PublishCourseActivity;

/**
 * 课程分类item.
 */
public class ClassItem {
    private static final String TAG = "ClassItem";

    private String description = "";
    private int oneId =-1;
    private int twoId = -1;
    private int threeId = -1;

    public  ClassItem() {

    }

    public  ClassItem(String description, double kmRadio) {
        this.description = description;
        this.kmRadio = kmRadio;
    }

    public  ClassItem(String description, int type) {
        this.description = description;
        this.typeState = type;
    }

    private int typeState = PublishCourseActivity.TEACH_STUDENT_STATE;
    private double kmRadio = 0.5; // 搜索附近课程的距离 . 0.5 代表500m.

    public int getTypeState() {
        return typeState;
    }

    public void setTypeState(int typeState) {
        this.typeState = typeState;
    }

    public double getkmRadio() {
        return kmRadio;
    }

    public void setkmRadio(double kmRadio) {
        this.kmRadio = kmRadio;
    }

    public int getThreeId() {
        return threeId;
    }

    public void setThreeId(int threeId) {
        this.threeId = threeId;
    }

    public int getTwoId() {
        return twoId;
    }

    public void setTwoId(int twoId) {
        this.twoId = twoId;
    }

    public int getOneId() {
        return oneId;
    }

    public void setOneId(int oneId) {
        this.oneId = oneId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "ClassItem{" +
                "description='" + description + '\'' +
                ", oneId=" + oneId +
                ", twoId=" + twoId +
                ", threeId=" + threeId +
                '}';
    }
}
